package com.med.mapper;

import com.med.entity.MedicalRecordDO;
import com.med.entity.UserDO;
import com.med.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @BelongsProject: internet-based-healthcare01
 * @BelongsPackage: com.med.mapper
 * @Author: WWJ
 * @CreateTime: 2025-08-13 15:32
 * @Description: TODO
 * @Version: 1.0
 */
@Mapper
public interface UserMapper {
    //查询患者
    List<UserDO> queryUserList(@Param("userVO")UserVO userVO);

    //删除患者
    Integer deleteUser(Integer userId);

    //重置患者密码
    Integer resetPassword(@Param("userId") Integer userId, @Param("password") String password);

    //修改账户状态
    Integer updateStatus(Integer userId);

    //添加用户
//    UserDO InsertUser(@Param("userVO") UserVO userVO);

    //查询患者的就诊记录
    List<MedicalRecordDO> queryMedicalRecordList(@Param("userId") Integer userId);


}
